package com.hrg.rds.biz.waybill.domain.instance;

import lombok.Getter;

@Getter
public enum WaybillInstanceStatus {
    ToBeDispatched(1, "待分配", "临时状态，运单创建后，待分配给AGV"),
    Executing(2, "执行中", "临时状态，运单被分配给AGV后，开始执行"),
    Pausing(3, "暂停", "临时状态，暂停运单执行，等待恢复执行"),

    Completed(4, "完成", "终态，运单执行完成"),
    Terminated(5, "终止", "终态，人为手动终止的运单"),
    Exception(9, "异常", "临时状态，客观原因如站点不存在等原因造成任务无法正常执行下去造成的异常中断。需要人工终止");

    private final int status;
    private final String chin;
    private final String remark;
    
    WaybillInstanceStatus(int status, String chin, String remark) {
        this.status = status;
        this.chin = chin;
        this.remark = remark;
    }
}
